body,
html {
    padding: 0;
    margin: 0;
    background-color: #fafafc;
}

ul,
li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.loop(@num, @steps)when(@num>=0) {
    li:nth-of-type(@{num}) .funItem {
        background-position-y: -@num * @steps + @steps;
    }

    .loop(@num - 1, @steps);
}

.box {
    width: 750px;
}

header {
    width: 100%;
    background-color: transparent;
    position: fixed;
    top: 0;
    z-index: 10;

    .seach {
        width: 100%;
        position: relative;
        padding: 10px 20px;

        input {
            width: 645px;
            height: 50px;
            outline: none;
            text-indent: 60px;
            font-size: 23px;
            border: none;
            border-radius: 60px;
        }

        .fdj {
            width: 30px;
            height: 30px;
            background-image: url("../../xiecheng-material/images/home-common.png");
            background-repeat: no-repeat;
            position: absolute;
            left: 40px;
            top: 20px;
        }
    }

    .my {
        position: absolute;
        left: 680px;
        top: 2px;
        text-align: center;

        .myp {
            width: 41px;
            height: 43px;
            background-image: url("../../xiecheng-material/images/home-common.png");
            background-repeat: no-repeat;
            background-position-y: -70px;
            margin: 0 auto;
        }

        span {
            font-size: 20px;
            color: #fff;
        }
    }
}

.banner {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;

    .imgBox {
        height: 100%;
        display: flex;
        position: absolute;
        top: 0;
        left: -750px;
        transition: all 1s;

        img {
            width: 750px;
            height: 100%;
        }
    }

    ul {
        display: flex;
        position: absolute;
        right: 25px;
        bottom: 84px;

        li {
            width: 16px;
            height: 16px;
            border-radius: 16px;
            margin: 0 8px;
            background-color: #fff;
            opacity: .5;
        }

        .active {
            width: 32px;
            opacity: .8;
        }
    }
}

.func {
    width: 750px;
    border-bottom: 2px solid #dbdbdb;

    .funcTop {
        width: 700px;
        height: 130px;
        margin: 0 auto;
        margin-top: -70px;
        position: relative;
        z-index: 2;
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, .1);

        ul {
            width: 100%;
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding-top: 5px;

            li {
                text-align: center;
                font-size: 20px;
            }
        }

        .funItem {
            width: 80px;
            height: 80px;
            background-image: url("../../xiecheng-material/images/home-fivemain.png");
            background-repeat: no-repeat;
        }

        .loop(5, 80px);
    }

    .funcMid {
        width: 700px;
        margin: 20px auto;
        border-radius: 20px;
        overflow: hidden;

        li {
            width: 168px;
            height: 100%;
            text-align: center;
            line-height: 128px;
            font-size: 26px;
            color: #fff;
            border-left: 2px solid #fff;
        }

        li:first-child {
            width: 194px;
            text-align-last: left;
            border-left: none;
            text-indent: 1em;
        }

        .funcMidTop {
            width: 100%;
            height: 128px;
            background-image: linear-gradient(to right, #fa5c56, #fb8550);
            display: flex;

            li:first-child {
                background-image: url(../../xiecheng-material/images/grid-nav-items-hotel.png);
                background-repeat: no-repeat;
                background-position: 46px 63px;
            }

            li:nth-of-type(2) {
                background-image: url(../../xiecheng-material/images/grid-nav-items-minsu.png);
                background-repeat: no-repeat;
                background-position: 0 87px;
            }

            li:last-child {
                background-image: url(../../xiecheng-material/images/grid-nav-items-jhj.png);
                background-repeat: no-repeat;
                background-size: 150px;
                background-position: 18px 73px;
            }
        }

        .funcMidMid {
            width: 100%;
            height: 128px;
            background-image: linear-gradient(to right, #4b91ed, #4b91ed);
            border-top: 2px solid #fff;
            border-bottom: 2px solid #fff;
            display: flex;

            li:first-child {
                background-image: url(../../xiecheng-material/images/grid-nav-items-flight.png);
                background-repeat: no-repeat;
                background-position: 32px 71px;
            }

            li:nth-of-type(2) {
                background-image: url(../../xiecheng-material/images/grid-nav-items-train.png);
                background-repeat: no-repeat;
                background-position: 0 87px;
            }
        }

        .funcMidBot {
            width: 100%;
            height: 128px;
            background-image: linear-gradient(to right, #34c2a9, #6bd559);
            display: flex;

            li:first-child {
                background-image: url(../../xiecheng-material/images/grid-nav-items-travel.png);
                background-repeat: no-repeat;
                background-position: 5px 37px;
            }

            li:nth-of-type(2) {
                background-image: url(../../xiecheng-material/images/grid-nav-items-dingzhi.png);
                background-repeat: no-repeat;
                background-position: 0 90px;
            }
        }
    }

    .funcBot {
        width: 700px;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;

        li {
            width: 135px;
            text-align: center;
            margin-bottom: 20px;

            .funItem {
                margin: 0 auto;
                width: 56px;
                height: 56px;
                background-image: url("../../xiecheng-material/images/un_ico_subnav.png");
                background-repeat: no-repeat;
            }

            span {
                font-size: 20px
            }
        }

        .loop(10, 56px);

        li:nth-of-type(9) {
            position: relative;
        }

        li:nth-of-type(9)::after {
            content: "NEW";
            display: block;
            position: absolute;
            right: 2px;
            top: -10px;
            padding: 5px;
            font-size: 20px;
            background-image: linear-gradient(to right, #f94442, #ffa15f);
            border-radius: 13px;
            color: #fff;
        }
    }
}

.tmh {
    width: 100%;
    background-color: #fff;
    padding-bottom: 26px;
    margin-bottom: 16px;
    border-bottom: 2px solid #dbdbdb;

    .tmhTitle {
        width: 700px;
        margin: 0 auto;
        height: 85px;
        padding: 20px 0;
        position: relative;
        box-sizing: border-box;

        .tmhTitleImg {
            width: 110px;
            height: 30px;
            background-image: url("../../xiecheng-material/images/un_home_text.png");
            background-repeat: no-repeat;
        }

        &::after {
            content: "更多>";
            display: block;
            padding: 0 15px;
            height: 40px;
            font-size: 25px;
            text-align: center;
            line-height: 40px;
            border-radius: 40px;
            color: #fff;
            background-image: linear-gradient(to right, #ff4f66, #ff6ac3);
            position: absolute;
            right: 0;
            top: 15px;
        }
    }

    .tmhItem {
        width: 710px;
        margin: 0 auto;

        &::after {
            content: ".";
            display: block;
            height: 0;
            visibility: hidden;
            clear: both;
        }

        .tmhItemLeft {
            width: 352px;
            height: 406px;
            background-color: #fafafc;
            margin-right: 8px;
            float: left;

            img {
                width: 100%;
                height: 235px;
            }

            .tmhItemLeftText {
                padding: 0 15px;

                h1 {
                    font-size: 27px;
                    font-weight: normal;
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 2;
                    overflow: hidden;
                }

                span {
                    color: red;
                    font-size: 30px;
                }
            }


        }

        .tmhItemRight {
            width: 350px;
            height: 406px;
            float: left;

            .tmhItemRightTop {
                width: 100%;
                height: 176px;
                padding: 20px;
                box-sizing: border-box;
                background-color: #fafafc;
                position: relative;
                margin-bottom: 8px;

                h1 {
                    color: #fd3a51;
                    margin: 0;
                    padding: 0;
                    margin-top: 35px;
                }

                h3 {
                    margin: 0;
                    padding: 0;
                    font-weight: normal;
                }

                img {
                    position: absolute;
                    right: 25px;
                    top: 40px;
                }
            }

            .tmhItemRightBot {
                width: 100%;
                display: flex;
                justify-content: space-between;

                h1 {
                    margin: 0;
                    padding: 0;
                    font-size: 32px;
                    margin-top: 35px;
                }

                h3 {
                    margin: 0;
                    padding: 0;
                    font-weight: normal;
                    font-size: 27px;
                }

                .botLeft {
                    width: 170px;
                    height: 220px;
                    text-align: center;
                    background-color: #fafafc;

                    h1 {
                        color: #6aabff;
                    }
                }

                .botRight {
                    width: 170px;
                    height: 220px;
                    text-align: center;
                    background-color: #fafafc;

                    h1 {
                        color: #53ca72;
                    }
                }
            }
        }
    }
}

.remen {
    width: 100%;
    background-color: #fff;
    border-bottom: 2px solid #dbdbdb;
    border-top: 2px solid #dbdbdb;
    margin-bottom: 16px;

    .remenTitle {
        width: 710px;
        margin: 0 auto;
        padding: 20px 0;
        position: relative;

        .remenTitleImg {
            width: 145px;
            height: 30px;
            background-image: url("../../xiecheng-material/images/un_home_text.png");
            background-repeat: no-repeat;
            background-position-y: -39px;
        }

        &::before {
            content: url("../../xiecheng-material/images/icon-gg.png");
            display: block;
            position: absolute;
            left: 190px;
            height: 20px;
        }

        &::after {
            content: "获取更多福利>";
            display: block;
            padding: 0 15px;
            height: 40px;
            font-size: 25px;
            text-align: center;
            line-height: 40px;
            border-radius: 40px;
            color: #fff;
            background-image: linear-gradient(to right, #ff4f66, #ff6ac3);
            position: absolute;
            right: 0;
            top: 15px;
        }
    }

    .remenList {
        width: 100%;
        display: flex;
        flex-wrap: wrap;

        .remenItem {
            border-top: 2px solid #dbdbdb;
            width: 374px;

            img {
                width: 100%;
                height: auto;
                display: block;
            }
        }

        .remenItem:nth-of-type(odd){
            border-right: 2px solid #dbdbdb;
        }
    }
}

.contact{
    width: 100%;
    margin: 0 auto;
    background-color: #fff;
    border-top: 2px solid #dbdbdb;
    border-bottom: 2px solid #dbdbdb;
    .container{
        width: 600px;
        margin: 20px auto;
        display: flex;
        justify-content: space-between;
    }
    .conItem{
        text-align: center;
        img{
            width: 40px;
        }
        h3{
            margin: 0;
            padding: 0;
            font-weight: normal;
            margin-top: 10px;
        }
    }
}

footer{
    width: 600px;
    margin: 26px auto;
    text-align: center;
    .up{
        font-size: 20px;
        margin-bottom: 10px;
        span:nth-of-type(2){
            margin: 0 10px;
            &::after{
                content: "∨";
                display: inline;
                margin-left: 5px;
            }
        }
    }
    .down{
        font-size: 20px;
        color: #999999;
    }
}